/* 整体布局相关 */
.Layout {
  display: flex;
  min-height: 100vh;
}
.Layout-Sider {
  background-color: #f8f9fa; /* 侧边栏浅灰色背景，比白色更有层次感 */
  padding-top: 20px;
}
.Layout-Header {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}
.Layout-Content {
  margin: 20px;
  background-color: white;
  padding: 20px;
}

/* 侧边栏菜单相关 */
.Menu {
  width: 200px;
}
.Menu-item {
  padding: 10px 16px; /* 适当增加内边距，让菜单项更饱满 */
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}
.Menu-item:hover {
  background-color: #e9ecef; /* 悬停时的浅灰色背景，视觉反馈更柔和 */
}
.Menu-item-icon {
  margin-right: 10px; /* 增大图标与文字间距 */
}
.active-menu-item {
  background-color: #007bff; /* 激活菜单项蓝色背景 */
  color: white;
}

/* 文件管理头部相关 */
.App-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.App-header h2 {
  margin: 0;
}
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-buttons {
  display: flex;
  gap: 5px;
}

/* 文件列表相关 - 列表视图 */
.file-container.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-item-list {
  display: flex;
  gap: 10px;
  border: 1px solid #dee2e6; /* 浅灰色边框，颜色更淡 */
  padding: 12px; /* 增加内边距，提升文件项视觉舒适度 */
  border-radius: 6px; /* 更大的圆角，更圆润 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* 轻微阴影，突出立体感 */
}
.file-icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9ecef; /* 图标背景色，与菜单悬停色呼应 */
  border-radius: 6px;
}
.file-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.filename {
  margin: 0;
  font-size: 16px;
  font-weight: 500; /* 稍微加粗文件名，更突出 */
}
.filemeta {
  margin: 0;
  font-size: 14px;
  color: #6c757d; /* 元信息颜色，更深一点的灰色 */
}
.filedate {
  margin: 0;
  font-size: 12px;
  color: #868e96; /* 日期颜色，稍淡的灰色 */
}

/* 文件列表相关 - 网格视图 */
.file-container.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.file-item-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dee2e6;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.file-item-grid .file-icon {
  width: 100%;
  height: auto;
}

/* 上传相关 */
.uploading-file {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dee2e6;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.uploading-file .file-details {
  align-items: center;
}
.uploading-file .ant-progress-circle {
  width: 80px;
  height: 80px;
}

/* 按钮样式 */
button {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.upload-button {
  background-color: #007bff;
  color: white;
}
.upload-button:hover {
  background-color: #0069d9; /* 上传按钮悬停颜色 */
}
.search-button {
  background-color: #007bff;
  color: white;
}
.search-button:hover {
  background-color: #0069d9; /* 搜索按钮悬停颜色 */
}
.view-mode-button {
  background-color: #e9ecef;
  color: #495057;
}
.view-mode-button.active {
  background-color: #007bff;
  color: white;
}
.view-mode-button:hover {
  background-color: #dee2e6; /* 视图模式按钮悬停颜色 */
}
.delete-button {
  color: #dc3545;
  background: none;
  border: none;
  padding: 0;
}
.delete-button:hover {
  color: #c82333; /* 删除按钮悬停颜色加深 */
}
.pagination-button {
  background-color: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
}
.pagination-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
.pagination-button:hover {
  background-color: #dee2e6; /* 分页按钮悬停颜色 */
}